// flow对象类型
/**
 * @flow
 */

const obj1: { name: string, age: number } = { name: 'deamn', age: 20 }

const obj2: { name ? : string, age: number } = { age: 20 }

const obj3: {
    [string]: string
} = {}
obj3.name = 'name'
obj3.age = '20'